A family of similar recordtypes; handles caching
Methods
|
|
__class_init__
_cacheRecord
_getFromCache
_getKeysFor
_getType
_loadDataFor
_setTypeFor
_unsetTypeFor
getItem
|
|
__class_init__
|
__class_init__ (
thisClass,
newClass,
next,
)
|
|
_cacheRecord
|
_cacheRecord ( self, record )
|
|
_getFromCache
|
_getFromCache ( self, keyMapping )
Exceptions
|
|
KeyError, ( "No unique keys supplied", keyMapping )
|
|
|
_getKeysFor
|
_getKeysFor ( self, mapping )
|
|
_getType
|
_getType ( self, typeName )
|
|
_loadDataFor
|
_loadDataFor (
self,
record,
typeName,
)
|
|
_setTypeFor
|
_setTypeFor (
self,
record,
typeName,
)
|
|
_unsetTypeFor
|
_unsetTypeFor (
self,
record,
typeName,
)
|
|
getItem
|
getItem ( self, **keyMapping )
Look up record using keyword arguments
Note that this may return nonexistent records; i.e. you must
call the returned record's exists() or hasType() method if you
want to be sure it exists.
|
|